﻿@{
    ViewBag.Title = "Edit Item";
    ViewBag.ManageItemsActive = "active";
}
@if (TempData["Error"] != null)
{
    <div class="alert alert-error">
        @TempData["Error"]
    </div>
}

@if (TempData["Success"] != null)
{
    <div class="alert alert-success">
        @TempData["Success"]
    </div>
}
<h2>Edit Item</h2>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span6 well">

            <form class="form-horizontal" method="POST" action="~/ManageItems/EditAItem">
                <div class="control-group">
                    <label class="control-label">Select an Item to Edit</label>
                    <br />
                    <br />
                    <select name="items" id="items" size="10">
                        @foreach (var item in Model)
                        {
                            <option value="@item.Id">@item.Name</option>
                        }
                    </select>
                </div>
                <input type="submit" class="btn btn-primary" value="Submit" />
            </form>
        </div>
    </div>
</div>

